<template>
  <div class="p-6 all">
    <div class="left">
      <div class="l-top">
        <img src="../assets/imgs/shopcar.png" alt="">
        <div>下单GMV</div>
      </div>
      <div class="l-bot">￥{{ info.zje }}</div>
    </div>
    <div class="right">
      <div class="r-top" style="margin-bottom: 0.625rem;">
        <!-- <div class="r-t-left">
          <div>待跟进线索</div>
          <div>2276</div>
        </div> -->
        <div class="r-t-left">
          <div>商品销量</div>
          <div>{{ info.zxl }}</div>
        </div>
      </div>
      <!-- <div class="r-top" style="margin-top: 10px;">
        <div class="r-t-left">
          <div>商品销量</div>
          <div>624</div>
        </div>
      </div> -->
    </div>
  </div>
</template>

<script setup>

import { toRefs ,onMounted ,ref } from 'vue'
const props = defineProps({
  info: Object,
})

const {info} =toRefs(props)

 onMounted(()=>{
  // console.log(info.value);
 })

</script>

<style lang="scss" scoped>
.all{
  background-color: #0931f5;
  display: flex;
  align-items: center;
  padding: 2%;
  box-sizing: border-box;
  .left{
    width: 100%;
    height: 100%;
    width: 40%;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    .l-top{
      display: flex;
      align-items: center;
      color: #fff;
      // font-size: 1.875rem;
      font-size:calc(100vw * 30 / 1920); 
      font-weight: bold;
      margin-bottom: 0.625rem;
      img{
        width: 3.125rem;
        height: 3.125rem;
      }
    }
    .l-bot{
      font-weight: bold;
      // font-size: 3.125rem;
      font-size:calc(100vw * 50 / 1920); 
      color: #fff;
    }
  }
  .right{
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    .r-top{
      background-color: #0c2ac0;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.25rem 2.5rem;
      box-sizing: border-box;
      border-radius: 0.625rem;
      flex: 1;
      .r-t-left{
        color: #fff;
        // font-size: 1.875rem;
        font-size:calc(100vw * 30 / 1920); 
        font-weight: bold;
        div{
          margin: 0.625rem 0;
        }
      }
    }
  }
}
</style>
